package com.itheima.day02_yuangong;

public class Manager extends Employee{
    private Clerk Clerk;
    @Override
    public void showMsg() {
        System.out.println("工号：" + getWorkId() + "姓名：" + getName() + "部门：" + getDept() + "员工：" + getClerk().getName());
    }

    public Manager(Clerk clerk) {
        Clerk = clerk;
    }

    public Manager(String name, String workId, String dept, Clerk clerk) {
        super(name, workId, dept);
        Clerk = clerk;
    }

    public Manager() {
    }

    public com.itheima.day02_yuangong.Clerk getClerk() {
        return Clerk;
    }

    public void setClerk(com.itheima.day02_yuangong.Clerk clerk) {
        Clerk = clerk;
    }
}
